package sysUtil

/**
 * Created by Administrator on 2018-05-13.
 */
enum ResultCode {

    TABLE_DATA_SUCCESS("获取数据成功",0),
    DB_CONNECT_SUCCESS("数据库链接成功",0),
    OPT_SUCCESS("操作成功",0),
    OPT_NOT_AUTH("无权限操作",201),
    OPT_SYS_AUTH("系统资源不能操作",202),
    OPT_NO_NEED("无更新操作",203),
    OPT_COUNT_0("操作成功，但表中记录无改变，请确认主键是否配置",204),
    USER_NOT_EXIST("用户不存在",300),
    PWD_ERROR("密码错误",301),
    OLD_PWD_ERROR("旧密码错误",302),
    QUERY_ERROR("数据库操作失败",303),
    OPT_ERROR("操作失败",304) ,
    CONNECT_ERROR("网络超时",305),
    SESSION_OUT_TIME("登录超时请重新登录",306),
    TOKEN_INVALID("登录凭证无效",307) ,
    EXISTS_ERROR("数据存在唯一约束",308),
    NOT_EXISTS_ERROR("操作记录不存在",309),
    EXISTS_CHILD_ERROR("操作失败:存在子节点",310),
    DB_CONNECT_ERROR("数据库链接失败",311),
    IO_READ_ERROR("Error:文件读写异常,请重试!",312),
    AJAX_ERROR("客户端请求异常",404);




    public String message;
    public int code;
    public String msg;
    private ResultCode(String message,int code){
        this.code = code
        this.message = message
        this.msg = message
    }

}